﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="label_select.aspx.cs" Inherits="admin_infomation_select" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>标签选择</title>
    <link href="../css/default.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            height: 178px;
        }
    </style>
    <script type="text/javascript">
    function subpara(){
	var names = '';
	var values = '';
	var cnums = 0;
	var nums = document.form1.ListBox2.options.length;
	for(var i=0;i<nums;i++)
	{
			names += document.form1.ListBox2.options[i].text + ",";
			values += document.form1.ListBox2.options[i].value + ",";
			cnums++;
	}
	if(names.length>0)
	{
	   names = names.substring(0,names.lastIndexOf(","));
	   values = values.substring(0,values.lastIndexOf(","));
	}
	window.opener.document.getElementById("tag").value=values;
	window.opener.document.getElementById("tagname").value=names;
	window.close();
  }

</script>


</head>
<body>
    <form id="form1" runat="server">
    <table width="100%" height="330" border="1" align="center" cellpadding="0" cellspacing="0" bordercolorlight="#2583BC" bordercolordark="#ffffff" bgcolor="#FFFFFF">
  <tr>
    <td  height="249" valign="top">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <th width="25%" align="left">　Tag设置</th>
      </tr>
    </table>
        <table width="100%" height="289" border="0">
     
            <tr>
        	<td colspan=3>
	        	标签名称：<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                <asp:Button ID="Button3" runat="server" Text="搜索" onclick="Button3_Click" 
                    UseSubmitBehavior="False" />
	        </td>
        </tr>
          <tr>
            <td width="38%" align="center" class="style1">
              
                <asp:ListBox ID="ListBox1" runat="server" Height="165px" Width="150px">
                </asp:ListBox>
            </td>
			<td class="style1">
				<asp:Button ID="Button1" runat="server" Text="选择===&gt;" onclick="Button1_Click" 
                    UseSubmitBehavior="False" />
                <br />
                <br />
                <asp:Button ID="Button2" runat="server" Text="删除&lt;===" 
                    onclick="Button2_Click" UseSubmitBehavior="False" />
				<br/><br/><br/>
				&nbsp;</td>
			<td class="style1">
                <asp:ListBox ID="ListBox2" runat="server" Height="165px" Width="150px">
                </asp:ListBox>
                            </td>
          </tr>
          <tr>
            <td height="25" colspan="3" align="center">
                <asp:Button ID="Button4" runat="server" onclick="Button4_Click" Text="确定"  OnClientClick="return subpara()"/>
&nbsp;
                <asp:Button ID="Button5" runat="server" Text="返回" />
              </td>
          </tr>
        
      </table></td>
  </tr>
</table>
    </form>
</body>
</html>
